package com.xuanwei.core.enums;

/**
 * @Author jiangyong
 * @Description TODO
 * @Date 2019/8/15 14:42
 **/
public enum NavigatePosition {


    HOT_SALE(1, "爆款热销"),

    SHOP_RECOMMEND(2, "店铺推荐"),

    PARTS(3, "配件专区"),

    NEW_PRODUCT(4, "新品上市"),

    ACTIVITY(5, "活动"),

    RECOMMEND(6, "推荐");


    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    NavigatePosition(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public static String getMsg(Integer code) {
        NavigatePosition[] values = values();
        for (NavigatePosition positionType : values) {
            if (positionType.code.equals(code)) {
                return positionType.message;
            }
        }

        return "";
    }
}
